import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service
//设备租赁收入合同变更申请查询
const request = {
    //分页查询合同台账
    queryStandingBook (params) {
        return httpPost({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/queryStandingBook',
            params: params,
        })
    },
    //新增(更新)基本信息
    createInfo (params) {
        return httpPost({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/createInfo',
            params: params,
        })
    },
    //基础信息查询
    getInfo (id) {
        return httpGet({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/getInfo',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //删除基本信息
    deleteInfo (id) {
        return httpGet({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/deleteInfo',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //新增(修改)主体信息
    createMainstay (params) {
        return httpPost({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/createMainstay',
            params: params,
        })
    },
    //主体信息查询
    getMainstay (id) {
        return httpGet({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/getMainstay',
            params: {
                billId: id,
            },
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //合同条款查询
    findByClause (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findByClause/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //结算台账查询
    findBySettlementAccount (id) {
        return httpGet({
            url: `/contract/ctSubContractDrawUp/findBySettlementAccount/${id}`,
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        })
    },
    //保存清单
    saveList (params) {
        return httpPost({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/saveList',
            params
        })
    },
    //查询清单
    getContractList (params) {
        return httpGet({
            url: '/subcontract/equipmentLeaseRevenueChangeApply/getList',
            params
        })
    },
    //查询变更记录
    getChangeRecords (params) {
        return httpGet({
            url: '/subcontract/equipmentLeaseChangeApply/getChangeRecords',
            params
        })
    },
    //获取终止记录
    getStopRecord (params) {
        return httpGet({
            url: '/subcontract/equipmentLeaseStop/getStopRecord',
            params: params,
        })
    },
    //签订记录查询
    findBySigningRecord (params) {
        return httpGet({
            url: '/subcontract/equipmentLeaseRevenueChangeSign/getSignRecord',
            params
        })
    },
}

export default request
